package com.link_with_health.model;

import java.io.Serializable;
import java.sql.Date;

public class PatientEntity implements Serializable {
    private Long patientId;
    private String realName;
    private Date birthday;
    private String sex;
    private double height;
    private double weight;
    private String operationHistory;
    private String clinicalHistory;
    private String allergy;
    private Long userBind;

    public PatientEntity() {
    }

    public PatientEntity(Long patientId, String realName, Date birthday, String sex, double height, double weight, String operationHistory, String clinicalHistory, String allergy) {
        this.patientId = patientId;
        this.realName = realName;
        this.birthday = birthday;
        this.sex = sex;
        this.height = height;
        this.weight = weight;
        this.operationHistory = operationHistory;
        this.clinicalHistory = clinicalHistory;
        this.allergy = allergy;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getOperationHistory() {
        return operationHistory;
    }

    public void setOperationHistory(String operationHistory) {
        this.operationHistory = operationHistory;
    }

    public String getClinicalHistory() {
        return clinicalHistory;
    }

    public void setClinicalHistory(String clinicalHistory) {
        this.clinicalHistory = clinicalHistory;
    }

    public String getAllergy() {
        return allergy;
    }

    public void setAllergy(String allergy) {
        this.allergy = allergy;
    }

    public Long getUserBind() {
        return userBind;
    }

    public void setUserBind(Long userBind) {
        this.userBind = userBind;
    }

    @Override
    public String toString() {
        return "Patients{" +
                "patientId='" + patientId + '\'' +
                ", realName='" + realName + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", height=" + height +
                ", weight=" + weight +
                ", operationHistory='" + operationHistory + '\'' +
                ", clinicalHistory='" + clinicalHistory + '\'' +
                ", allergy='" + allergy + '\'' +
                '}';
    }
}
